package com.pingan.haofang.searchcloud.web.monitor.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

/**
 * 硬件预警配置Form
 *
 * @author EX-ZHOUYONG005
 * @date 2018/10/19
 * @since 1.0.0
 */
@ApiModel(description = "硬件预警配置Form")
public class HardwareWarningConfigForm {

    /**
     * 硬盘使用率(%)
     */
    @ApiModelProperty(value = "硬盘使用率(%)")
    @Range(min = 0, max = 100)
    private int diskOccupancyRate;

    /**
     * solr节点健康率(%)
     */
    @ApiModelProperty(value = "solr节点健康率(%)")
    @Range(min = 0, max = 100)
    private int solrHealthRate;

    /**
     * 预警接收人
     */
    @ApiModelProperty(value = "预警接收人")
    @NotBlank
    private String mailTo;

    public int getDiskOccupancyRate() {
        return diskOccupancyRate;
    }

    public void setDiskOccupancyRate(int diskOccupancyRate) {
        this.diskOccupancyRate = diskOccupancyRate;
    }

    public int getSolrHealthRate() {
        return solrHealthRate;
    }

    public void setSolrHealthRate(int solrHealthRate) {
        this.solrHealthRate = solrHealthRate;
    }

    public String getMailTo() {
        return mailTo;
    }

    public void setMailTo(String mailTo) {
        this.mailTo = mailTo;
    }
}
